package com.example.demo.domain;

import org.apache.ibatis.type.Alias;
/**
 * @Create:     Space
 * @Time:       2020-06-10 18:40:00
 * @Describe:   用户收货地址
 */
@Alias("address")
public class Address
{
    private Integer id;
    //地址
    private String address;
    //添加时间
    private String times;
    //用户id
    private Integer uid;

    private User user;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getTimes() {
        return times;
    }

    public void setTimes(String times) {
        this.times = times;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    @Override
    public String toString() {
        return "Address{" +
                "id=" + id +
                ", address='" + address + '\'' +
                ", times='" + times + '\'' +
                ", uid=" + uid +
                ", user=" + user +
                '}';
    }
}
